<template>
  <a-steps :current="Number(current-1)" size="small" labelPlacement="horizontal" v-if="show">
    <a-step v-for="item in steps" :key="item" :title="item" />
  </a-steps>
</template>

<script>
export default {
  props: {
    steps: {
      type: Array,
      default: () => []
    },
    current: [Number, String],
    show: {
      type: Boolean,
      default: true,
    }
  }
}
</script>
